"""
展示与接受用户操作的主要界面
"""
import os, time
from title import Title
from libs import cleanScreen

# 初始化数据
back = Title()
flag = back.show()
while flag:
    print("请输入指令：", end='')
    action = input().split()[0]
    cleanScreen()
    if action.lower() == "quit" or action.lower() == "q":
        # cleanScreen()
        break
    else:
        back = back.getAction(action.lower())
        flag = back.show()